package ${dtoPackage};

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import com.jingyuan.framework.support.BasePageRequest;
import java.math.BigDecimal;
import com.alibaba.fastjson.annotation.JSONField;

/**
* <p>
    * ${table.comment!}
    * </p>
* @author ${author}
* @since ${date}
*/
@Data
@ApiModel(value = "${entity}QueryDTO对象", description = "${table.comment!}查询")
public class ${entity}QueryDTO extends BasePageRequest implements Serializable {

    //private static final long serialVersionUID = 1L;

<#-- ----------  BEGIN 字段循环遍历  ---------->
<#list table.fields as field>
    <#if field.keyFlag>
        <#assign keyPropertyName="${field.propertyName}"/>
    </#if>
    <#if field.propertyName!="createTime" && field.propertyName!="updateTime">
    /**
    * ${field.comment!field.propertyName}
    */
    @ApiModelProperty(value="${field.comment!''}")
    <#if field.columnType.type=="String">
    <#elseif field.columnType.type=="Date">
    //@JSONField(format = "yyyy-MM-dd HH:mm:ss")
    </#if>
    private ${field.propertyType} ${field.propertyName};

    </#if>
</#list>
<#------------  END 字段循环遍历  ---------->
<#if !entityLombokModel>
    <#list table.fields as field>
        <#if field.propertyType == "boolean">
            <#assign getprefix="is"/>
        <#else>
            <#assign getprefix="get"/>
        </#if>
        public ${field.propertyType} ${getprefix}${field.capitalName}() {
        return ${field.propertyName};
        }


        public void set${field.capitalName}(${field.propertyType} ${field.propertyName}) {
        this.${field.propertyName} = ${field.propertyName};
        }
    </#list>
</#if>
<#if !entityLombokModel>
    @Override
    public String toString() {
    return "${entity}VO{" +
    <#list table.fields as field>
        <#if field_index==0>
            "${field.propertyName}=" + ${field.propertyName} +
        <#else>
            ", ${field.propertyName}=" + ${field.propertyName} +
        </#if>
    </#list>
    "}";
    }
</#if>
}
